package com.cby.olive.sample.model

/**
 * @description: TestData
 * @author: ChenBaoYang
 * @createDate: 2023/1/30 10:51 AM
 */
data class Person(
    var name: String,
    var age: Int,
    var locaton: Location? = null
)

val persons = listOf(
    Person("Peter", 16),
    Person("Anna", 28),
    Person("Anna", 23),
    Person("Sonya", 39)
)

//'坐标类，嵌套在Location类中'
data class Coordinate(var x: Int, var y: Int)
//'位置类，嵌套在Person类中'
data class Location(
    var country: String,
    var city: String,
    var coordinate: Coordinate
)
